﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Excel = Microsoft.Office.Interop.Excel;

namespace easyExcel.Util
{
    static class ExcelFormatUtil
    {
        private const int ROW_HEIGHT_UNIT = 15;

        public static void UpRowHeight(Excel.Range range)
        {
            range.RowHeight = range.RowHeight + ROW_HEIGHT_UNIT;
        }

        public static void DownRowHeight(Excel.Range range)
        {
            if (range.RowHeight == ROW_HEIGHT_UNIT)
            {
                return;
            }
            range.RowHeight = range.RowHeight - ROW_HEIGHT_UNIT;
        }
    }
}
